package com.evil.common.account.dto.user;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author liyang
 * @date 2023-01-08 16:10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CheckEnterpriseUserIdsReqDTO extends FindUserIdsByIdReqDTO {

    /**
     * 用户ids
     */
    private List<Long> userIds;

    public CheckEnterpriseUserIdsReqDTO() {
    }

    public CheckEnterpriseUserIdsReqDTO(Long id, Boolean filterDeleted, Boolean cache, Integer isManager, List<Long> userIds) {
        super(id, filterDeleted, cache, isManager);
        this.userIds = userIds;
    }

    public static CheckEnterpriseUserIdsReqDTO filter(Long id, List<Long> userIds) {
        return new CheckEnterpriseUserIdsReqDTO(id, true, false, null, userIds);
    }
}
